/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * Portions created by the Initial Developer are
 * Copyright (C) 2012 the Initial Developer.
 * All Rights Reserved.
 *
 * The Original Code is "http://semi-frame.googlecode.com/svn/trenk/".
 *
 * The Initial Developer of the Original Code is the author below.
 */
/**
 * @file TaskManager.h
 * @brief Manager of tasks.
 * @author mornongcloud
 * @date 2011/12/21
 */

#ifndef SEMITASKMANAGER_H_
#define SEMITASKMANAGER_H_

#include <unistd.h>
#include "semi/Controller.h"

namespace semi {

/**
 * @brief Manager of tasks.
 *
 * @date 2011/12/21
 */
class TaskManager {
public:
	TaskManager();
	virtual ~TaskManager();

	//	static void init(std::string taskId);

	static bool execute(std::string taskid);
	static void executeAll();

	//private:
	//	static bool execute(conf::TasksConfig::TaskConfig taskcnf,
	//			CurrentTasks mCrnt);

};

}

#endif /* SEMITASKMANAGER_H_ */
